//
//  DepartureFetcher.h
//  TrainTrack
//
//  Created by Jonathan Bunde-Pedersen on 04/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <sqlite3.h>

@interface Model : NSObject {
	
	sqlite3 *database;
	NSMutableArray *departures;
	NSMutableArray *stations;
	NSMutableArray *favouriteStations;
}

@property (nonatomic, retain) NSMutableArray *departures;
@property (nonatomic, retain) NSMutableArray *stations;
@property (nonatomic, retain) NSMutableArray *favouriteStations;
@property (nonatomic) sqlite3 *database;

- (NSArray *) fetchValidDeparturesForStation:(NSString *)station;
- (NSArray *) fetchDeparturesForStation:(NSString *)station;
- (NSArray *) fetchStations;
- (NSArray *) fetchFavouriteStations;

@end
